def determine_sign(number):
    if number > 0:
        return 1
    elif number < 0:
        return -1
    else:
        return 0

if __name__ == "__main__":
    try:
        user_input = int(input("请输入一个整数: "))
        result = determine_sign(user_input)
        print(f"输入的是 {user_input}, 输出的结果为: {result}")
    except ValueError:
        print("请输入有效的整数！")
